/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.product.entity.product;

import org.apache.ibatis.type.Alias;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 商品管理Entity
 * @author Egan
 * @version 2016-12-12
 */
@Alias("genProduct")
public class GenProduct extends DataEntity<GenProduct> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 名称
	private String code;		// 货号
	private String catalogid;		// 类别
	private String catalogName;		// 类别名称
	private String brand;		// 品牌
	private String introduce;		// 简介
	private String price;		// 定价
	private String nowprice;		// 现价
	private String stock;		// 库存
	private String score;		// 赠送积分
	private String unit;		// 单位
	private String isrecommend; //是否是推荐商品
	private String isnew;		// 新品
	private String isspecialoffer; //特价
	private String hit;		// 浏览次数
	private String status;		// 状态
	private String sellcount;		// 销量
	private String activityid;		// activityid
	private String giftid;		// giftid
	private String picture;		// picture
	private String images;		// images
	private String maxpicture;		// maxpicture
	private String producthtml;		// producthtml
	protected String createStr;	// 创建日期
	protected String updateStr;	// 更新日期
	private String createStart;
	private String createEnd;
	private String detail;//介绍
	private int order1; //排序
	
	private String associateStr;
	public GenProduct() {
		super();
	}

	public GenProduct(String id){
		super(id);
	}

	@Length(min=1, max=64, message="名称长度必须介于 1 和 64 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=64, message="货号长度必须介于 0 和 64 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Length(min=0, max=64, message="类别长度必须介于 0 和 64 之间")
	public String getCatalogid() {
		return catalogid;
	}

	public void setCatalogid(String catalogid) {
		this.catalogid = catalogid;
	}
	
	@Length(min=0, max=64, message="品牌长度必须介于 0 和 64 之间")
	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}
	
	@Length(min=0, max=500, message="介绍长度必须介于 0 和 500 之间")
	public String getIntroduce() {
		return introduce;
	}

	public void setIntroduce(String introduce) {
		this.introduce = introduce;
	}
	
	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}
	
	public String getNowprice() {
		return nowprice;
	}

	public void setNowprice(String nowprice) {
		this.nowprice = nowprice;
	}
	
	@Length(min=0, max=11, message="库存长度必须介于 0 和 11 之间")
	public String getStock() {
		return stock;
	}

	public void setStock(String stock) {
		this.stock = stock;
	}
	
	@Length(min=0, max=11, message="赠送积分长度必须介于 0 和 11 之间")
	public String getScore() {
		return score;
	}

	public void setScore(String score) {
		this.score = score;
	}
	
	@Length(min=0, max=64, message="单位长度必须介于 0 和 64 之间")
	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}
	
	@Length(min=0, max=1, message="新品长度必须介于 0 和 1 之间")
	public String getIsnew() {
		return isnew;
	}

	public String getIsrecommend() {
		return isrecommend;
	}

	public void setIsrecommend(String isrecommend) {
		this.isrecommend = isrecommend;
	}

	public String getIsspecialoffer() {
		return isspecialoffer;
	}

	public void setIsspecialoffer(String isspecialoffer) {
		this.isspecialoffer = isspecialoffer;
	}

	public void setIsnew(String isnew) {
		this.isnew = isnew;
	}
	
	@Length(min=0, max=11, message="浏览次数长度必须介于 0 和 11 之间")
	public String getHit() {
		return hit;
	}

	public void setHit(String hit) {
		this.hit = hit;
	}
	
	@Length(min=0, max=1, message="状态长度必须介于 0 和 1 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	@Length(min=0, max=11, message="销量长度必须介于 0 和 11 之间")
	public String getSellcount() {
		return sellcount;
	}

	public void setSellcount(String sellcount) {
		this.sellcount = sellcount;
	}
	
	@Length(min=0, max=64, message="activityid长度必须介于 0 和 64 之间")
	public String getActivityid() {
		return activityid;
	}

	public void setActivityid(String activityid) {
		this.activityid = activityid;
	}
	
	@Length(min=0, max=64, message="giftid长度必须介于 0 和 64 之间")
	public String getGiftid() {
		return giftid;
	}

	public void setGiftid(String giftid) {
		this.giftid = giftid;
	}
	
	@Length(min=0, max=245, message="picture长度必须介于 0 和 245 之间")
	public String getPicture() {
		return picture;
	}

	public void setPicture(String picture) {
		this.picture = picture;
	}
	
	@Length(min=0, max=1000, message="images长度必须介于 0 和 1000 之间")
	public String getImages() {
		return images;
	}

	public void setImages(String images) {
		this.images = images;
	}
	
	@Length(min=0, max=245, message="maxpicture长度必须介于 0 和 245 之间")
	public String getMaxpicture() {
		return maxpicture;
	}

	public void setMaxpicture(String maxpicture) {
		this.maxpicture = maxpicture;
	}
	
	public String getProducthtml() {
		return producthtml;
	}

	public void setProducthtml(String producthtml) {
		this.producthtml = producthtml;
	}
	
	public String getCatalogName() {
		return catalogName;
	}

	public void setCatalogName(String catalogName) {
		this.catalogName = catalogName;
	}

	public String getCreateStr() {
		return createStr;
	}

	public void setCreateStr(String createStr) {
		this.createStr = createStr;
	}

	public String getUpdateStr() {
		return updateStr;
	}

	public void setUpdateStr(String updateStr) {
		this.updateStr = updateStr;
	}

	public String getCreateStart() {
		return createStart;
	}

	public void setCreateStart(String createStart) {
		this.createStart = createStart;
	}

	public String getCreateEnd() {
		return createEnd;
	}

	public void setCreateEnd(String createEnd) {
		this.createEnd = createEnd;
	}

	public String getAssociateStr() {
		return associateStr;
	}

	public void setAssociateStr(String associateStr) {
		this.associateStr = associateStr;
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

	public int getOrder1() {
		return order1;
	}

	public void setOrder1(int order1) {
		this.order1 = order1;
	}
}